package com.hifar.test.test.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hifar.test.test.mapper.HfEnvTestCurveDataMapper;
import com.hifar.test.test.pojo.HfEnvTestCurveData;
import com.hifar.test.test.service.IHfEnvTestCurveDataService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author zhuWeiWei
 * @description 试验曲线数据
 * @date 2025/6/10 17:51
 */
@Service
public class HfEnvTestCurveDataServiceImpl extends ServiceImpl<HfEnvTestCurveDataMapper, HfEnvTestCurveData>
        implements IHfEnvTestCurveDataService {

    @Override
    public List<HfEnvTestCurveData> listByTestId(String testId) {
        return this.lambdaQuery()
                .eq(HfEnvTestCurveData::getTestId, testId)
                .orderByAsc(HfEnvTestCurveData::getRowSort)
                .list();
    }
}
